package cn.tedu._01mvcboot01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class CartsController {
    @RequestMapping("/v1/carts/addCart")
    @ResponseBody
    public String addCart(){
        return "添加购物车成功";
    }
    @RequestMapping("/v1/carts/listCart")
    @ResponseBody
    public String listCart(){
        return "查看购物车成功";
    }
}
